package com.yowasa.xiuxian.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("xiuxian_exmail")
public class XiuxianUserEmail {

    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 修仙角色id
     */
    private Long accountId;

    //阅读状态  0未读  1已读
    private Integer readStatus;
    //附件状态 0未收取 1已收取
    private Integer itemStatus;

    //标题
    private String title;
    //内容
    private String msg;
    //附件字符串 [{type,name,num,quality}]
    private String extra;
    //发件人id，0为系统邮件
    private Long fromAccount;

    private Date createTime;
//
//                `id` bigint(20) NOT NULL AUTO_INCREMENT,
//  `account_id` bigint(20) DEFAULT NULL,
//  `status` int(11) DEFAULT NULL,
//  `title` varchar(255) DEFAULT NULL,
//  `msg` text,
//            `extra` text,
//            `from_account` bigint(20) DEFAULT NULL,

    public XiuxianUserEmail(Long accountId){
        this.accountId = accountId;
        this.createTime = new Date();
        this.fromAccount = 0L;
        this.itemStatus = 0;
        this.readStatus = 0;
    }
    public XiuxianUserEmail(){
    }


}
